@import './common/var.scss';
@import './mixins/ellipsis.scss';

.van-lc-card {
  color: $text-color;
  min-height: 48px;
  font-size: 14px;
  // background: $white;
  position: relative;
  box-sizing: border-box;
  padding: 5px 15px 5px 15px;

  &:not(:last-child)::after {
    left: 15px;
    right: 0;
    width: auto;
    transform: scale(1, .5);
    border-bottom-width: 1px;
  }
  &:not(:first-child) {
    margin-top: 10px;
  }

  &--center,
  &__avatar {
    align-items: center;
    justify-content: center;
  }

  &__avatar {
    top: 5px;
    left: 10px;
    position: absolute;

    img {
      border: none;
      max-width: 100%;
      max-height: 100%;
    }
  }

  &,
  &__thumb,
  &__row,
  &__right-icon  {
    display: flex;
  }

  &__content {
    width: 100%;

    &--center {
      height: 90px;
      align-items: center;
    }
  }

  &__title,
  &__desc {
    line-height: 20px;
    word-break: break-all;
  }

  &__title {
    max-height: 40px;

    @include multi-ellipsis(1);
  }

  &__desc {
    color: $gray-dark;
    font-size: 12px;
    max-height: 20px;

    @include ellipsis;
  }

  &__sub-title,
  &__sub-desc {
    flex: 1;
    min-width: 80px;
    line-height: 20px;
    text-align: right;
  }

  &__sub-title {
    font-size: 14px;
  }

  &__sub-desc {
    color: $gray-darker;
    font-size: 12px;
  }
  
  &__left-icon {
    font-size: 16px;
    line-height: 24px;
    margin-right: 5px;
  }

  &__right-icon {
    color: $gray-dark;
    font-size: 12px;
    line-height: 24px;
    margin-left: 5px;
    align-items: center;
    &--left::before {
      transform: rotate(180deg);
    }

    &--up::before {
      transform: rotate(-90deg);
    }

    &--down::before {
      transform: rotate(90deg);
    }
  }

  &--clickable {
    &:active {
      background-color: $active-color;
    }
  }

  &__footer {
    right: 15px;
    bottom: 5px;
    position: absolute;

    .van-button {
      margin-left: 5px;
    }
  }
  
}
